package com.scs.application.modules.upms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.ITreeService;
import com.scs.application.modules.upms.entity.Menu;
import com.scs.application.modules.upms.request.MenuQueryRequest;
import com.scs.application.modules.upms.vo.MenuVO;

import java.util.List;

/**
 */
public interface MenuService extends ITreeService<Menu> {


    List<Menu> list(MenuQueryRequest request);


    IPage<MenuVO> page(MenuQueryRequest request);

    /**
     *
     * @param userId
     * @param excludeButton
     * @return
     */
    List<Menu> getUserMenu(String userId, boolean excludeButton);


    List<Menu> getUserAppMenu(String userId, boolean excludeButton);


    /**
     * 获取用户权限字符串列表
     * @param userId
     * @return
     */
    List<String> getPermissions(String userId);

}
